/*
================================================================================
	Plik: mem_abs.h
--------------------------------------------------------------------------------
	Autorzy: Piotr Zdunek, Mateusz Słowikowski, Krzysztof Wiąckowski
	Projekt:Model mikrokontrolera AVR
	Kompilator: avr-gcc-4.3.5
	Doc: doxygen 1.7.4
--------------------------------------------------------------------------------
	Zawiera:
--------------------------------------------------------------------------------
	Komentarze:
================================================================================
*/

#ifndef __MEM_ABS_H__
#define __MEM_ABS_H__

void loadMEMC						(char *file);
void loadMEMD						(char *file);
void saveMEMD						(char *file);

uint16_t getMEMC					(uint16_t p);
uint8_t getMEMD						(uint16_t p);

void printMEMC();
void printMEMD();

void setPC							(uint16_t v);
void incPC							(void);
void incPC_k						(int k);
uint16_t getPC						(void);

uint8_t getRegister					(int n);
uint8_t GetFlagRegisterStatus		(int n);
void setRegister					(int n, uint8_t v);
//void printSREGstatus();
void SetFlagRegisterBit				(int n);
void ClearFlagRegisterBit			(int n);
void SetFlagRegister				(uint8_t SREG_TMP);
void PrintFlagRegisterStatus		(void);
void InitializeFlagRegister			(void);
void SaveFlagRegister				(void);
uint8_t GetFlagRegister				(void);
uint16_t GetYRegister				(void);
uint16_t GetZRegister				(void);
uint8_t GetRegisterFromDataSpace	(int n);
void incY							(void);
void SaveYRegister					(uint8_t VALUE);
void displaceY						(uint8_t k);
uint8_t GetRegisterBitStatus		(uint8_t Rd, int n);

#endif //__MEM_ABS_H__
